﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace DAL
{
    public class tbCTHD
    {
        private int sohd;

        public int Sohd
        {
            get { return sohd; }
            set { sohd = value; }
        }
        private string mamh;

        public string Mamh
        {
            get { return mamh; }
            set { mamh = value; }
        }
        private string soluong;

        public string Soluong
        {
            get { return soluong; }
            set { soluong = value; }
        }
        DBAccess db = new DBAccess();
        public DataTable dalHienThiMHDaGiao()
        {
            string query = "HienThiMHDaGiao";
            SqlParameter[] param = new SqlParameter[1];
            param[0] = new SqlParameter("@SoHD", Sohd);
            return db.GetDataTable(query, CommandType.StoredProcedure, param);
        }

        public DataTable dalHienThiMHChuaGiao()
        {
            string query = "HienThiMHChuaGiao";
            SqlParameter[] param = new SqlParameter[1];
            param[0] = new SqlParameter("@SoHD", Sohd);
            return db.GetDataTable(query, CommandType.StoredProcedure, param);
            
        }
    }
}
